package com.pan.admin.module.loanProduct.entity;

import com.pan.admin.common.annotation.Excel;
import com.pan.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 产品机构，资质字段匹配对象 loan_product_field
 *
 * @author ts
 * @date 2023-09-15
 */
public class LoanProductPlanField extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    private Long id;
    /**
     * 产品主键
     */
    @Excel(name = "产品主键")
    private Integer loanProductId;

    /**
     * 机构计划主键
     */
    @Excel(name = "机构计划主键")
    private Integer loanProductPlanId;

    /**
     * 动态字段主键id
     */
    @Excel(name = "动态表单字段主键")
    private Integer loanFormFieldId;
    @Excel(name = "动态表单字段值主键")
    private Integer loanFormFieldValueId;
    /**
     * 字段名称
     */
    private String fieldName;
    /**
     * 字段值
     */
    private String fieldValue;
    /**
     * 状态
     */
    private Integer status;

    /** 0全匹配类型  1多选一匹配 */
    private Integer type;


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getFieldValue() {
        return fieldValue;
    }

    public void setFieldValue(String fieldValue) {
        this.fieldValue = fieldValue;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getLoanProductId() {
        return loanProductId;
    }

    public Integer getLoanProductPlanId() {
        return loanProductPlanId;
    }

    public void setLoanProductPlanId(Integer loanProductPlanId) {
        this.loanProductPlanId = loanProductPlanId;
    }

    public void setLoanProductId(Integer loanProductId) {
        this.loanProductId = loanProductId;
    }

    public Integer getLoanFormFieldId() {
        return loanFormFieldId;
    }

    public void setLoanFormFieldId(Integer loanFormFieldId) {
        this.loanFormFieldId = loanFormFieldId;
    }

    public Integer getLoanFormFieldValueId() {
        return loanFormFieldValueId;
    }

    public void setLoanFormFieldValueId(Integer loanFormFieldValueId) {
        this.loanFormFieldValueId = loanFormFieldValueId;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("loanProductId", getLoanProductId())
                .append("loanFormFieldId", getLoanFormFieldId())
                .append("loanFormFieldValueId", getLoanFormFieldValueId())
                .append("fieldName", getFieldName())
                .append("status", getStatus())
                .append("fieldValue", getFieldValue())
                .toString();
    }
}
